Skip to content

Wind parameters - configurable hair physics#1893

Closed
skaljac wants to merge 3 commits intomasterfrom
wind_parameters
Closed

Wind parameters - configurable hair physics#1893
skaljac wants to merge 3 commits intomasterfrom
wind_parameters

Conversation

@skaljac
Copy link
Contributor

@skaljac skaljac commented Nov 30, 2021

We can configure wind parameters in scene file with:

{
"type": "application/windsettings",
"content": {
"forceFactor": 1.0,
"direction": [0.1, 0, 0.01],
"gravity": [0, -0.2, 0]
}
},

forceFactor is wind force
direction is amount of variance in x,y,z direction
gravity is fixed amount of gravity added to randomized direction

Related to issue:
#1598

PR for webaverse/metaversefile is here:
webaverse/totum#39

Previous PR is deleted because it is outdated.

Steps for testing:
Add configuration param (described at the begging) to any .scn file.
Observe players hair
Equip another avatar, and observe his/hers hair

Change direction,gravity and forceFactor to see is there any change in behaviour

@skaljac
Copy link
Contributor Author

skaljac commented Nov 30, 2021

2021-11-30.16-35-14.mp4

@alisaad673
Copy link
Contributor

Device: Mac m1

The PR is working fine with Hairs. I have attached some videos to see. Also I tested it by changing parameters inside the above provided code too.

WhatsApp.Video.2021-12-01.at.2.09.58.PM.2.mp4
WhatsApp.Video.2021-12-01.at.2.09.58.PM.1.mp4
WhatsApp.Video.2021-12-01.at.2.09.58.PM.mp4

-Changed Parameters:

WhatsApp.Video.2021-12-01.at.2.09.58.PM.4.mp4
WhatsApp.Video.2021-12-01.at.2.09.58.PM.3.mp4

It works fine and can be merged.

@mwmwmw
Copy link
Contributor

mwmwmw commented Jun 7, 2022

Shipped in #3029

@mwmwmw mwmwmw closed this Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants